package com.jason.data.agentbase;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class MyTestController {

    @Autowired
    MyService MyService;

    @RequestMapping("/apo")
    public  Object test(){
        System.out.println("------开始------");
        MyService.run();
        return "ok";
    }

    @RequestMapping("/apo2")
    public  Object test2(){
        System.out.println("------开始2------");
        MyService.run2();
        return "ok";
    }
}
